<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AbstractController
 *
 * @author Rodrigo
 */
class AbstractController extends CI_Controller{
    
    function __construct() {
        parent::__construct();
         $this->load->helper(array('form', 'url'));
	 $this->load->library('form_validation');
         
         $this->load->model("conta_model"); 
         
        if(!$this->conta_model->logado()){
            redirect('index.php/home');
        }
        
    }
    
}
